<?php
	include "sql.php";
	if(is_array($_POST)&&count($_POST)>0){
		$name = $passwd = $email = "";
		if ($_SERVER["REQUEST_METHOD"] == "POST"){
		  $name = $_POST["name"];
		  $passwd = $_POST["passwd"];
		  $email = $_POST["email"];
		  if($name!=null) echo stationMangerReg($name,$passwd,$email);
		  else echo 0;
		  return;
		}
	}
	
?>

<!DOCTYPE html>
<html>
<head>
	<title></title>
</head>
<body>
	<form action="setManger.php" method="post">
		name:<input type="text" name="name"><br>
		passwd:<input type="text" name="passwd"><br>
		email:<input type="text" name="email"><br>
		<input type="submit" name="">
	</form>
</body>
</html>

